package twentytwenty;

/**
 * @Author: Spider Man
 * @Description:
 * @Date Created in 2020-09-22 14:00
 * @Modified By:
 */
public class SearchInsert_35 {
    public static void main(String[] args) {

    }

    public int searchInsert(int[] nums, int target) {
        for (int i = 0; i < nums.length; i++) {
            if (nums[i] >= target){
                return i;
            }
        }
        return nums.length;
    }
}
